package com.zzw.eureka;

import java.util.TimeZone;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

import com.baidu.disconf.client.common.annotations.DisconfFile;

@SpringBootApplication
// @ImportResource({"classpath:disconf.xml"})//引入disconf
@EnableEurekaServer
@DisconfFile(filename = "application-disconf.yml")
public class EurekaServerApplication {

	public static void main(String[] args) {
		// TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
		TimeZone.setDefault(TimeZone.getTimeZone("GMT+8:00"));
		SpringApplication.run(EurekaServerApplication.class, args);
	}

	// disconf第一次扫描
	/*
	 * @Bean public DisconfMgrBean disconfMgrBean() { DisconfMgrBean
	 * disconfMgrBean = new DisconfMgrBean();
	 * disconfMgrBean.setScanPackage("com.zzw.eureka"); return disconfMgrBean; }
	 * 
	 * // disconf第二次扫描
	 * 
	 * @Bean public DisconfMgrBeanSecond disconfMgrBean2() {
	 * DisconfMgrBeanSecond disconfMgrBean2 = new DisconfMgrBeanSecond(); return
	 * disconfMgrBean2; }
	 */

}
